<?php
use yii\helpers\Html;
use common\service\UserSrv;

$user=UserSrv::getInstance();
$info=$user->getUserInfo();
//var_dump($info);die;
//var_dump($user);die;

?>
<div id="content">
    <!--breadcrumbs-->
    <div id="content-header">
        <div id="breadcrumb"> <a href="/site/index" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a></div>
    </div>
    <!--End-breadcrumbs-->

    <!--Action boxes-->
    <div class="container-fluid">
        <h3>
            Hi,<strong><?= $info['username'] ?></strong>
        </h3>
        <p>您当前登录IP为 <span style="margin-left: 10px; color: green">
        <i class="icon icon-sitemap"></i><strong><?= $info['ip']?></strong></span>
            <span style="margin-left: 20px;">登录时间：<strong style="color: red"><?php echo date('Y年m月d日 H:i:s')?></strong></span>
        </p>
    </div>
</div>


